package com.campsys.mapping;

import com.campsys.domain.TSysUser;
import com.campsys.domain.param.UserAddParam;
import com.campsys.domain.param.UserUpdateParam;
import com.campsys.domain.vo.UserInfoVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserMapping {

    UserMapping INSTANCE = Mappers.getMapper(UserMapping.class);

    UserInfoVo to(TSysUser user);

    TSysUser to(UserAddParam userAddParam);

    TSysUser to(UserUpdateParam userUpdateParam);
}
